<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .something-meaningful {
            width: 300px;
            height: 300px;
            /* padding: 1em; */
            /* border: 16px solid transparent;
            background: linear-gradient(white, white) padding-box,
                repeating-linear-gradient(-45deg,
                    red 0, red 12.5%,
                    transparent 0, transparent 25%,
                    #58a 0, #58a 37.5%,
                    transparent 0, transparent 50%) 0 / 5em 5em; */


            border-top: .2em solid transparent;
            border-image: 100% 0 0 linear-gradient(90deg, currentColor 4em, transparent 0);
            padding-top: 1em;
            color: blueviolet;

        }

        .something-meaningful>div {
            height: 80%;
            background: white;
            /* padding: 1em; */
        }

        /* @keyframes ants {
            to {
                background-position: 100%
            }
        }

        .marching-ants {
            padding: 1em;
            border: 1px solid transparent;
            background: linear-gradient(white, white) padding-box,
                repeating-linear-gradient(-45deg, black 0, black 25%, white 0, white 50%) 0 / .6em .6em;
            animation: ants 12s linear infinite;
        } */
    </style>
</head>

<body>
    <div class="something-meaningful marching-ants">
        <div>
            I have a nice stone art border,
            don't I look pretty?
        </div>
    </div>

</body>